package com.sinosoft.perfect.system._theme.dao;

import java.sql.SQLException;
import java.util.List;

import com.sinosoft.perfect.common.system.BaseSqlSessionDaoSupport;
import com.sinosoft.perfect.system._.po.TTheme;
import com.sinosoft.perfect.system._theme.MapperSystemTheme;

public class ThemeDAOImpl extends BaseSqlSessionDaoSupport implements IThemeDAO {

	private MapperSystemTheme getMapperSystemTheme() {
		return getSqlSession().getMapper(MapperSystemTheme.class);
	}

	@Override
	public int deleteTThemeByPK(TTheme ttheme) throws SQLException {
		return getMapperSystemTheme().deleteTThemeByPK(ttheme);
	}

	@Override
	public List<TTheme> selectByTTheme(TTheme ttheme) throws SQLException {
		return getMapperSystemTheme().selectByTTheme(ttheme);
	}

	@Override
	public Object insertByTTheme(TTheme ttheme) throws SQLException {
		return getMapperSystemTheme().insertByTTheme(ttheme);
	}

	@Override
	public int updateTThemeByPK(TTheme ttheme) throws SQLException {
		return getMapperSystemTheme().updateTThemeByPK(ttheme);
	}

	@Override
	public Object selectTThemeDefault() throws SQLException {
		return getMapperSystemTheme().selectTThemeDefault();
	}

}
